<template>
<div>
  <div class="n-artdesc">
    <h2>
      <i>&nbsp;</i>
      {{ SingerName }}简介
    </h2>
    <p style="text-indent: 2em" v-html="briefDesc"></p>
    <span v-for="(item,index) in introduction" :key="index">
      <h2>
      {{item.ti}}
    </h2>
    <p v-html="item.txt.replace(/\n/g,'<br>')">

    </p>
    </span>
  </div>
</div>
</template>

<script>
export default {
  name: "index",
  props:['SingerName'],
  data(){
    return {
      briefDesc:'',
      introduction:[],
      topicData:[]
    }
  },
  methods:{
    async getArtistDescription(){
      let result = await this.$API.reqArtistDescription(this.$route.params.id)
      this.briefDesc = result.data.briefDesc
      this.introduction = result.data.introduction
      this.topicData = result.data.topicData
    },
  },
  mounted() {
    this.getArtistDescription()
  }
}
</script>

<style scoped lang="less">
.n-artdesc{
  width: 640px;
  margin: 0 auto;
  padding-bottom: 40px;
  h2{
    margin: 28px 0 8px 0;
    color: #333;
    font-size: 14px;
    i{
      height: 14px;
      width: 3px;
      margin-right: 7px;
      background: #c10d0c;
    }
  }
  p{
    line-height: 25px;
    color: #666;
  }
}
</style>